<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<input type="button" value="修改aa" @click="setM"/>
			<input type="text" v-model="aa" @keyup.enter="getM"/>
			<h2>{{aa}}</h2>
		</div>
		<script>
		var app = new Vue({
			el:"#app",
			data:{
				aa:"哈哈哈"
			},
			methods:{
				getM:function(){
					alert(this.aa)
				},
				setM:function(){
					this.aa = "嘎嘎嘎"
				}
			}
				
		})
	</script>
	</body>
	
</html>
